﻿#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <unistd.h>

int main(int argc, char ** argv) {
	char cat[] = "cat ";
	char * command;
	size_t commandLength;

	commandLength  = strlen(cat) + strlen(argv[1]) + 1;
	command  = (char *)malloc(commandLength);
	strncpy(command, cat, commandLength);
	strcat(command, argv[1]);
	system(command);

	return (0);
}